@charset "utf-8";
@import './base/reset.scss';
@import './layout/color_variables';
@import './module/breadcumb.scss';
@import './module/mycoursesnav.scss';
/***************
通用样式标准

jx代表教学
页头：jx-header
页面主体： jx-main
内容： jx-content

****************/

//清浮动
.clear {
    clear: both;
}

.clear-fix:after {
    display: block;
    content: '';
    clear: both;
}

.clearfix:after {
    display: block;
    content: '';
    clear: both;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

//文字颜色快捷
.c-red {
    color: $red;
    padding: 5px 0;
}

.c-blue {
    color: $blue;
}
.ts-c-blue{
    color:$blue;
}
.ts-c-xq{
    &:hover{
        color:#1277eb;
    }
}
.ts-c-qblue{
    color:#29b0ce;
}
.ts-c-yellow{
    color:#e7a745;
}
.ts-c-red{
    color:#f67878;
}
.c-btn-blue {
    color: $btn-blue;
}

.fs14 {
    font-size: $fs14;
}

.fs16 {
    font-size: $fs16;
}

.fs18 {
    font-size: $fs18;
}

.fs20 {
    font-size: $fs20;
}

.fs24 {
    font-size: $fs24;
}

.fs30 {
    font-size: $fs30;
}

.fbold {
    font-weight: bold;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

a {
    color: $btn-blue;
    &:hover {
        color: $blue;
    }
}

//主体宽度
$width:1200px;
//按钮相关(按钮具体大小 请根据设计图进行配置)
$button-width:auto !default;
$button-height:32px !default;
$button-size:14px !default;
$button-color:$btn-blue !default;
$buttin-border:1px solid $btn-blue !default;
$buttin-padding:0 16px !default;
.button-style {
    border: $buttin-border;
    height: $button-height;
    width: $button-width;
    text-align: center;
    vertical-align: middle;
    line-height: 30px;
    color: $button-color;
    cursor: pointer;
    border-radius: 20px;
    padding: $buttin-padding;
    font-size: $button-size;
    display: inline-block;
    box-sizing: border-box;
}

.button-style:hover {
    background: $button-color;
    color: $white;
}
.button-style:focus {
    background: #fff;
    border: $buttin-border;
    color: $button-color;
    &:hover {
        background: $button-color;
        color: $white;
    }
}
.download-style{
    border: $buttin-border;
    border-color:rgb(61, 147, 245);
    height: 40px;
    width: $button-width;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
    color: #fff;
    background:rgb(61, 147, 245);
    cursor: pointer;
    border-radius: 6px;
    padding: $buttin-padding;
    font-size: $button-size;
    display: inline-block;
    box-sizing: border-box;
    &:hover{
        background:rgba(61, 147, 245,.8);
        border-color:rgba(61, 147, 245,.8);
    }
    &::after{
        content: "\E61A";
        font-family: "iconfont" !important;
        font-size: 16px;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke-width: 0.2px;
        padding:0 0 0 6px;
    }
}
//上一页
.prev-style{
    border: $buttin-border;
    border-color:rgb(226, 238, 251);
    height: 40px;
    width: $button-width;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
    color: #1277eb;
    background:rgb(226, 238, 251);
    cursor: pointer;
    border-radius: 6px;
    padding: $buttin-padding;
    font-size: $button-size;
    display: inline-block;
    box-sizing: border-box;
    &:hover{
        background:rgba(226, 238, 251,.8);
        border-color:rgba(226, 238, 251,.8);
    }
    &::before{
        content: "\EEDE";
        font-family: "iconfont" !important;
        font-size: 16px;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke-width: 0.2px;
        padding:0 2px 0 0px;
        vertical-align: -webkit-baseline-middle;
    }
}
//下一页
.next-style{
    border: $buttin-border;
    border-color:rgb(226, 238, 251);
    height: 40px;
    width: $button-width;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
    color: #1277eb;
    background:rgb(226, 238, 251);
    cursor: pointer;
    border-radius: 6px;
    padding: $buttin-padding;
    font-size: $button-size;
    display: inline-block;
    box-sizing: border-box;
    &:hover{
        background:rgba(226, 238, 251,.8);
        border-color:rgba(226, 238, 251,.8);
    }
    &::after{
        content: "\E63B";
        font-family: "iconfont" !important;
        font-size: 16px;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -webkit-text-stroke-width: 0.2px;
        padding:0 0px 0 2px;
        vertical-align: -webkit-baseline-middle;
    }
}
// 标题蓝色色块
.blueStreak {
    background: $blue;
    width: 2px;
    float: left;
    height: 15px;
}

//开关颜色
.el-switch.is-checked .el-switch__core {
    border-color: #1ac48a;
    background-color: #1ac48a;
}

//表单样式覆盖
// 输入框配置
$input-width:150px !default;
$input-height:32px !default;
//表单label样式
.el-form-item__label {
    // width: auto!important;
    height: $input-height;
    line-height: $input-height; // padding-left: 10px;
}

.el-input__inner {
    width: $input-width;
    height: $input-height;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
}

.el-form-item__content {
    height: $input-height;
    line-height: $input-height;
}

.el-date-editor.el-input,
.el-date-editor.el-input__inner {
    width: $input-width;
}

.el-textarea__inner {
    border: 1px solid #d9d9d9;
}

textarea {
    background: #fff;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: $btn-blue;
    border-color: $btn-blue;
}

.el-checkbox__inner:hover {
    border-color: $btn-blue;
}

.el-radio__input.is-checked .el-radio__inner {
    border-color: $btn-blue;
    background: $btn-blue;
}

.el-radio__inner {
    border-color: $btn-blue;
}

.el-radio__input.is-checked+.el-radio__label {
    color: $blue;
}

//标题
.jx-title {
    color: $title-gray;
    @include fs($fs16);
    font-weight: normal;
    line-height: 50px;
}

#jx-app {
    height: 100%;
}

//通用白色内容盒子
.jx-content {
    width: $width;
    box-sizing: border-box;
    box-shadow: $boxShadow;
    background: #fff;
    border-radius: 5px;
    padding: 30px 40px;
    margin: 0 auto 20px;
    color: $title-gray;
    line-height: 30px;
    font-size: 14px;
}

.jx-container {
    width: 1200px;
    margin: 0 auto;
}

//首页内容盒子
.jx-index-container {
    position: relative; // top: 60px;
}

//表格覆盖样式
.el-table {
    .el-button--text {
        color: #385899;
        font-size: 14px;
        a {
            color: #385899;
        }
    }
    .el-checkbox__inner {
        border: 1px solid #8e8e8e;
    }
    th {
        background: #fafafa;
        padding: 14px 0;
    }
    td {
        padding: 10px 0;
    }
    th,
    td {
        text-align: center;
        color: #727272;
        font-size: 14px;
    }
    th.is-leaf {
        border-bottom: 1px solid #e8e8e8;
    }
}

//分页样式
.el-pagination {
    position: relative;
    padding: 30px;
    text-align: right;
    .el-input__inner {
        width: 46px;
    }
    .el-pager {
        li.active+li {
            border-left: 1px solid #d9d9d9;
        }
        li.active {
            color: #1277eb;
            border: 1px solid #1277eb;
        }
    }
    .el-pager li,
    .btn-prev,
    .btn-next {
        border: 1px solid #d9d9d9;
        font-weight: normal;
        color: #727272;
        margin-right: 8px;
        min-width: 30px;
        height: 30px;
        line-height: 28px;
        font-size: 12px;
        padding: 0 4px;
        box-sizing: border-box;
        text-align: center;
        border-radius: 4px;
        &:hover {
            color: #1277eb;
        }
    }
}

//弹窗覆盖样式
.el-dialog {
    border-radius: 5px;
    .el-dialog__header {
        background: #070e28;
        border-radius: 5px 5px 0 0;
        height: 46px;
        line-height: 46px;
        padding: 0 20px;
        .el-dialog__title {
            color: #fff;
            font-size: 14px;
        }
    }
    .el-dialog__footer {
        padding: 10px 20px 36px;
    }
    .el-dialog__headerbtn {
        top: 16px;
        .el-dialog__close {
            color: #fff;
            &:hover {
                color: #fff;
            }
        }
    }
}

//markdown样式覆盖
.v-note-wrapper .v-note-op {
    background: $bg-gray !important;
}

.v-note-help-wrapper {
    z-index: 9999 !important;
}
.v-note-wrapper .v-note-op.shadow,
.v-note-wrapper .v-note-panel.shadow {
    box-shadow: none !important;
    border: 1px solid $border-gray !important;
}

.v-note-wrapper .v-note-panel.shadow {
    border-top: 0 !important;
}

//对于下拉框图标不对齐
.el-input__icon {
    line-height: 0
}

//z-index
//v-note-wrapper markdown-body
//列表文字超出隐藏 图片隐藏
.beyond-hiding {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    >* {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    img {
        display: none;
    }
}

.nodata-box {
    width: 100%;
    min-height: 300px;
    text-align: center;
    padding: 200px 0;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: $boxShadow;
    background: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:#727272;
    &:before {
        content: '';
        display: block;
        margin-bottom: 20px;
        width: 237px;
        height: 90px;
        background: url('../assets/images/index_no_data.png') no-repeat 0 0;
    }
}
.course-chapter-nodata{
    width: 100%;
    min-height: 300px;
    text-align: center;
    padding: 100px 0;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:#727272;
    &:before {
        content: '';
        display: block;
        margin-bottom: -4px;
        width: 529px;
        height: 113px;
        background: url('../assets/images/course-chapter-nodata.png') no-repeat 0 0;
    }
}
.nodata-box-small {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:#727272;
    &:before {
        content: '';
        display: block;
        margin-bottom: 20px;
        width: 237px;
        height: 90px;
        background: url('../assets/images/index_no_data.png') no-repeat 0 0;
    }
}
//模板没数据
.nodata-muban {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:#727272;
    &:before {
        content: '';
        display: block;
        margin-bottom: 20px;
        width: 427px;
        height: 117px;
        background: url('../assets/images/muban-nodata.png') no-repeat 0 0;
    }
}

//设置图片最大宽度不能超过父容器80%
// img {
//     max-width: 80%;
// }
//题目禁止换行
.question-content-timu {
    * {
        display: inline-block;
    }
    br {
        display: none;
    }
}

//markdown 中添加样式
.markdown-body p {
    line-height: 1.5
}

.markdown-body strong {
    line-height: 1.5
}

//全局英文文字强制换行，不知道有没有bug
body {
    word-break: break-all;
}

//类似a标签的el-button
.table-button {
    .el-button {
        border: none;
    }
    .el-button:focus {
        background: none;
        border: none;
    }
    .el-button:hover {
        background: none;
        color: $btn-blue;
        border: none;
    }
    .btn-disabled {
        cursor: not-allowed;
        background: none;
        border: none;
        color: #c0c4cc;
        &:hover {
            color: #c0c4cc;
        }
        &:focus {
            color: #c0c4cc;
        }
    }
    a {
        color: #385899;
        &:hover {
            color: #1277eb;
        }
    }
}

// 饿了么select padding
.el-select-dropdown{
    .el-select-dropdown__item{
        padding: 0 30px 0 20px;
    }
}
.icon-wenti-m{
    font-size: 14px!important;
    font-weight: normal!important;
}
//去掉markdown所有通用样式-外部链接图片添加
.op-image.popup-dropdown .dropdown-item:first-child{
  display: none;
}
